<?php
$v_status = -1;
$v_filter = "";
$v_cate_id= 0;
$v_cate_filter= 0;
if(_is_sqlserver()){
	
	$sql = "Exec ONEGATE_RecordtypeGetAll  ";
	$sql = $sql . $v_status.",";
	$sql = $sql . $v_cate_filter . "," ;
	$sql = $sql ."'". $v_filter."'";
	$ado_conn->SetFetchMode(ADODB_FETCH_ASSOC);
	$arr_all_recordtype = $ado_conn->GetAll($sql);
	/*
	$cmd = @mssql_init("ONEGATE_RecordtypeGetAll", $conn);
	@mssql_bind($cmd, "@p_status", $v_status, SQLINT1);
	@mssql_bind($cmd, "@p_cate_id", $v_cate_id, SQLINT4);
	@mssql_bind($cmd, "@p_filter", $v_filter, SQLVARCHAR);
	$result = mssql_execute($cmd); 
	$arr_all_recordtype = _get_row_to_array($result);
	@mssql_free_result($result);  */
	//var_dump($arr_all_recordtype);
	//exit;
}?>
